package com.sss.springcloud.controller;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.sss.springcloud.common.Result;

/**
 * 降级自定义服务消息返回
 * @author sss
 * @date 2020-03-12 14:05
 **/
public class CustomFallbackHandler {


    public static Result fallbackHandler(Integer id, BlockException ex){

        return Result.fail(444,"fallbackHandler****服务正在阻塞，请稍后再试(T_T)！！！");
    }

    public static  Result fallbackHandler2(Integer id, BlockException ex){
        return Result.fail(445,"fallbackHandler2****服务正在阻塞，请稍后再试(T_T)！！！");
    }
}
